#include "stdafx.h"
#include "GameStateMgr.h"
#include "AcceptBattle.h"

CAcceptBattle::CAcceptBattle()
{
    Name = _T("CAcceptBattle");
}

CAcceptBattle::~CAcceptBattle()
{
}


void CAcceptBattle::Reset()
{

}

void CAcceptBattle::DoAction()
{
    CWowFun::AcceptBattlefield(0);
    //return;
    //if (GET_DB().m_dwBattle1 && 2==CWowFun::GetBattleInfo(GET_DB().m_dwBattle1))
    //{
    //    CWowFun::AcceptBattlefield(GET_DB().m_dwBattle1);
    //    return ;
    //}

    //if (GET_DB().m_dwBattle2 && 2==CWowFun::GetBattleInfo(GET_DB().m_dwBattle2))
    //{
    //    CWowFun::AcceptBattlefield(GET_DB().m_dwBattle2);
    //    return;
    //} 
}
